package cn.ryh.thymeleaf.thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @ClassName ThyMeleafController
 * @Description ThyMeleaf模板测试
 * @Author RaoYH
 */
@Controller
@RequestMapping(value = "/thyMeleafController")
public class ThyMeleafController {

    /**
     * 返回html模板.
     */
    @RequestMapping(value = "/helloTmtl")

    public String helloTmtl(Map<String,Object> map){

        map.put("hello","from ThyMeleafController.helloHtml");

        return"/helloTmtl";

    }
}
